// 给按钮添加点击事件，方法里面创建tr和3个td把文本框的内容设置给td
// 把td装进tr，把tr装进table标签
let t1 = document.querySelector("#i1");
let t2 = document.querySelector("#i2");
let t3 = document.querySelector("#i3");
let table = document.querySelector("table");
function f() {
  let td1 = document.createElement("td");
  let td2 = document.createElement("td");
  let td3 = document.createElement("td");
  let tr = document.createElement("tr");
  td1.innerText = t1.value;
  td2.innerText = t2.value;
  td3.innerText = t3.value;
  tr.append(td1, td2, td3);
  table.append(tr);
}
